let userinfoApp = new Vue({
    el: "#userinfoApp",
    data: {
        user: {}
    },
    methods: {
        loadUserinfo() {
            // axios.get("/portal/user/me").then(resp => {
            //     console.log(resp.data.data)
            //     this.user = resp.data.data
            // })
            $.ajax({
                url: "/portal/user/me",
                method: "get",
                success:function(resp) {
                    if (resp.code === OK) {
                        userinfoApp.user = resp.data
                    } else {
                        alert(resp.message);
                    }
                }
            })
        }
    },
    created() {
        this.loadUserinfo()
    }
})